package com.duapk.web.conf;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class SystemConfig {

	private static Properties config = null;

	/**
	 * 加载系统配置
	 * @throws IOException 
	 */
	public static void load(String configFile) throws IOException {
		config = new Properties();
		InputStream in = new FileInputStream(configFile);
		config.load(in);
	}

	public static String getConfigString(String key) {
		return config.getProperty(key);
	}
}
